package com.wf.demo;

import android.app.Activity;
import android.database.DataSetObserver;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Adapter;
import android.widget.ArrayAdapter;
import android.widget.LinearLayout;
import android.widget.ListView;

public class LisetViewDemoActivity extends Activity {
	private String [] data ={"Toast","ListView","Content","SlidingDrawer"};
	private ListView lv = null;
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.setContentView(R.layout.main);
        
        LinearLayout layout = (LinearLayout) super.findViewById(R.id.lv);
        this.lv = new ListView(this);
        this.lv.setAdapter(new ArrayAdapter<String>
        (this, android.R.layout.simple_expandable_list_item_1,data));
        layout.addView(lv);
    }
}